function dpv = DpY(T, i, j, projection, numOfPeople, k, m, trainFaces, allprojectionFace,uij,height,width)
    TD = zeros(height,width);
    TD(:,:) = T(i,j,:,:);
    afterProjection = TD * projection;
    ujy = zeros(numOfPeople,1);

    for c = 1:numOfPeople
        ujy(c) = UjY(uij, afterProjection, c, allprojectionFace, k, m);
    end

    dpv = ujy;
end